package com.hzgj.bcl.stats;

import java.io.Serializable;

public class  MetricsMessage implements Serializable{
	private static final long serialVersionUID = 1L;
	private String name;
	private long succss;
	private long failue;
	
	private double maxMillis;
	private double minMillis;
	private double meanMillis;
	//耗时的分布情况
	private double p75;
	private double p95;
	private double p99;
	private double p999;
	
	private String visitTime;
	public MetricsMessage(){}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public long getSuccss() {
		return succss;
	}
	public void setSuccss(long succss) {
		this.succss = succss;
	}
	public long getFailue() {
		return failue;
	}
	public void setFailue(long failue) {
		this.failue = failue;
	}
	public double getMaxMillis() {
		return maxMillis;
	}
	public void setMaxMillis(double maxMillis) {
		this.maxMillis = maxMillis;
	}
	public double getMinMillis() {
		return minMillis;
	}
	public void setMinMillis(double minMillis) {
		this.minMillis = minMillis;
	}
	public double getMeanMillis() {
		return meanMillis;
	}
	public void setMeanMillis(double meanMillis) {
		this.meanMillis = meanMillis;
	}
	public double getP75() {
		return p75;
	}
	public void setP75(double p75) {
		this.p75 = p75;
	}
	public double getP95() {
		return p95;
	}
	public void setP95(double p95) {
		this.p95 = p95;
	}
	public double getP99() {
		return p99;
	}
	public void setP99(double p99) {
		this.p99 = p99;
	}
	public double getP999() {
		return p999;
	}
	public void setP999(double p999) {
		this.p999 = p999;
	}
	public String getVisitTime() {
		return visitTime;
	}
	public void setVisitTime(String visitTime) {
		this.visitTime = visitTime;
	}
	@Override
    public String toString(){
		return name+"|"+succss+"|"+failue+
				"|"+maxMillis+"|"+minMillis+"|"+meanMillis+
				"|"+p75+"|"+p95+"|"+p99+"|"+p999+"|"+visitTime;
	}
}
